package com.qpf.mycms.api.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@Schema(description = "分页结果")
public class PageResult<T> implements Serializable {
    @Schema(description = "当前页码")
    private Integer pageNo=1;
    @Schema(description = "每页记录数")
    private Integer pageSize=10;
    @Schema(description = "总页数")
    private Integer totalPage=0;
    @Schema(description = "总记录数")
    private Integer totalRows=0;
    @Schema(description = "结果集")
    private List<T> rows;
}
